const http=require('http')
const URL=require('url')
// const exec=require('child_process').execFile
const exec = require('child_process').execSync

http.createServer((req,res)=>{
	res.setHeader('Content-Type','text/plain');
    // res.end("hello nodejs");
    // const file='/data/myProject/Resume/build.sh'
    const file='/data/myProject/Resume/'
    exec('cd '+file+';sh build.sh')
    res.end('success')
    // console.log(res)
}).listen(3400)